package com.gy.api.tv.controller;

import cn.hutool.core.bean.BeanUtil;
import com.gy.api.base.ApiIndex;
import com.gy.api.base.R;
import com.gy.api.pc.message.domain.vo.MessageInfoAddDto;
import com.gy.api.pc.message.service.IMessageInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
@RequestMapping("TV/system/messageInfo")
@Api( tags = ApiIndex.HuashuMessageInfoController)
public class HuashuMessageInfoController {

    @Autowired
    IMessageInfoService service;
    @PostMapping("/add")
    @ResponseBody
    @ApiOperation(value = "新增保存消息")
    public R addSave(@RequestBody MessageInfoAddDto addDto) {
        service.addSave(addDto);
        return new R();
    }

}
